<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
			<script src="js/vue.js"></script>
	</head>
	<body>

		<div id="app">
			<button @click="doit(8,6)">点击</button>
			<input @keydown.enter="writeMsg()"/>
		</div>
	</body>
	<script>
	var app=new Vue({
		el:"#app",
		data:{
			
		},
		methods:{
			doit:function(a,b){
				console.log(a)
				console.log(b)
			},
			writeMsg:function(){
				console.log(11111)
			}
			
		}
	})
	
	</script>
</html>
